﻿<class:UserControlBaseModule x:Class="SampleModule.Views.CreateOrUpdateAppel"
                             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                             xmlns:EnumModule="clr-namespace:Interfaces.Enums;assembly=Interfaces"
                             xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
                             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
                             xmlns:class="clr-namespace:Helpers.Class;assembly=Helpers"
                             xmlns:helpers="clr-namespace:Helpers;assembly=Helpers"
                             d:DesignHeight="300"
                             d:DesignWidth="300"
                             mc:Ignorable="d">

    <class:UserControlBaseModule.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/colors.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <DataTemplate x:Key="ListItemDestinataire">
                <StackPanel Margin="5,5,5,0" Orientation="Horizontal">
                    <CheckBox Content="{Binding Utilisateur.FullName}" IsChecked="{Binding IsSelected}" />
                </StackPanel>
            </DataTemplate>

            <DataTemplate x:Key="ListItemCommentaire">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="1" />
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Column="0"
                                Margin="0,10,0,0"
                                Orientation="Vertical">
                        <TextBlock FontSize="12"
                                   Foreground="{DynamicResource BrushBackgroundLateralMenu}"
                                   Text="{Binding UserCreateComment.FullName}" />
                        <TextBlock FontSize="10"
                                   Foreground="{DynamicResource BrushBackgroundLateralLightMenu}"
                                   Text="{Binding SysDateCreation,
                                                  StringFormat={}{0:f}}" />
                    </StackPanel>
                    <TextBlock Grid.Column="1"
                               Margin="20,0,0,10"
                               FontSize="14"
                               Foreground="{DynamicResource BrushBackgroundLateralMenu}"
                               Text="{Binding Commentaire}"
                               TextWrapping="Wrap" />
                    <Line Grid.Row="1"
                          Grid.Column="1"
                          Margin="10,0,10,0"
                          HorizontalAlignment="Stretch"
                          Stretch="Fill"
                          Stroke="#88A0A0A0"
                          StrokeThickness="1"
                          X1="0"
                          X2="1" />
                </Grid>
            </DataTemplate>

            <!--  Template de la liste  -->
            <Style x:Key="CommentsListBoxItem" TargetType="ListBoxItem">
                <Setter Property="MinHeight" Value="25" />
                <Setter Property="Margin" Value="0" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ListBoxItem">
                            <Border x:Name="Border"
                                    Margin="0,0,0,20"
                                    Background="Transparent"
                                    SnapsToDevicePixels="True">
                                <ContentPresenter Margin="5, 0, 0, 0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="CommentsListBox" TargetType="ListBox">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="BorderThickness" Value="0" />
                <Setter Property="SnapsToDevicePixels" Value="true" />
                <Setter Property="ItemContainerStyle" Value="{StaticResource CommentsListBoxItem}" />
            </Style>
        </ResourceDictionary>
    </class:UserControlBaseModule.Resources>

    <controls:MetroContentControl>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="250" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="80" />
            </Grid.RowDefinitions>

            <Border Grid.RowSpan="2"
                    Margin="20,20,10,20"
                    BorderBrush="{DynamicResource BrushBorderModule}"
                    BorderThickness="0"
                    CornerRadius="{DynamicResource CornerRadiusSize}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Border Background="{DynamicResource ColorThemeBrush}" Padding="10,5,10,5">
                        <StackPanel Orientation="Horizontal">
                            <Viewbox Width="13.385" Height="20.108">
                                <Canvas Width="13.385" Height="20.108">
                                    <Canvas>
                                        <Canvas>
                                            <Path Data="F1 M 3.247,13.620 C 4.247,15.485 5.342,16.846 6.561,18.030 C 7.734,19.175 9.032,19.820 9.413,19.964 C 9.836,20.147 10.185,20.111 10.628,20.091 C 11.156,20.068 11.364,19.891 11.447,19.846 C 11.531,19.801 11.649,19.737 11.950,19.534 L 13.069,18.675 C 13.597,18.285 13.339,17.926 13.179,17.708 L 10.237,14.677 C 9.886,14.304 9.482,14.520 9.277,14.824 L 8.705,15.692 L 8.063,15.949 C 7.630,16.030 7.475,15.940 7.280,15.698 C 7.121,15.481 6.536,14.670 6.536,14.670 L 3.431,8.872 C 2.558,7.242 2.700,5.934 2.749,5.259 C 2.759,4.994 2.714,4.909 2.979,4.919 L 4.094,5.144 C 4.667,5.247 4.884,4.765 4.900,4.712 C 4.939,4.583 4.922,4.550 5.107,4.493 C 5.275,4.403 5.309,4.385 5.318,4.121 L 5.431,1.098 C 5.448,0.851 5.352,0.751 5.224,0.711 C 5.095,0.672 5.075,0.638 5.013,0.521 C 4.973,0.326 4.784,-0.027 4.366,0.002 L 2.749,0.090 C 2.749,0.090 2.254,0.053 1.615,0.395 C 0.909,0.773 0.396,1.351 0.160,2.081 C -0.048,2.863 -0.067,3.999 0.187,5.440 C 0.405,6.860 0.845,9.134 3.247,13.620" Fill="{DynamicResource BrushTitleModule}" />
                                        </Canvas>
                                    </Canvas>
                                </Canvas>
                            </Viewbox>
                            <TextBlock Margin="5,0,0,0"
                                       VerticalAlignment="Center"
                                       Foreground="White"
                                       Text="{helpers:Localize CreateAppel_DefinitionAppel,
                                                           True}" />
                        </StackPanel>
                    </Border>

                    <Grid Grid.Row="1" Background="White">
                        <ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto">
                            <!--  Titre et message  -->
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="90" />
                                    <RowDefinition MinHeight="400" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>

                                <!--  Titre  -->
                                <Grid Grid.Row="0" Margin="20,10">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="60" />
                                        <RowDefinition Height="1" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>

                                    <!--  Titre  -->
                                    <xctk:WatermarkTextBox Grid.Row="0"
                                                           Grid.Column="0"
                                                           Margin="0,0,0,10"
                                                           VerticalAlignment="Bottom"
                                                           BorderThickness="0"
                                                           FontSize="24"
                                                           Foreground="{DynamicResource BrushForegroundTextBox}"
                                                           IsEnabled="{helpers:AccessFunctionModification 0,
                                                                                                      {x:Static EnumModule:TypeModulesEnum.Appels}}"
                                                           TabIndex="0"
                                                           Text="{Binding Appel.Sujet,
                                                                          Mode=TwoWay,
                                                                          UpdateSourceTrigger=PropertyChanged}"
                                                           Watermark="{helpers:Localize CreateAppel_WatermarkTitle}">
                                        <xctk:WatermarkTextBox.WatermarkTemplate>
                                            <DataTemplate>
                                                <ContentControl Content="{Binding}"
                                                                FontFamily="Segoe UI"
                                                                Foreground="#88A0A0A0" />
                                            </DataTemplate>
                                        </xctk:WatermarkTextBox.WatermarkTemplate>
                                    </xctk:WatermarkTextBox>

                                    <!--  Tiers & Dossier  -->
                                    <Border Grid.Row="0"
                                            Grid.Column="1"
                                            Height="30"
                                            Margin="0,5,0,10"
                                            VerticalAlignment="Bottom"
                                            Background="#FFFFFFFF"
                                            BorderBrush="#88A0A0A0"
                                            BorderThickness="1"
                                            CornerRadius="{DynamicResource CornerRadiusSize}">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>

                                            <xctk:WatermarkTextBox Grid.Column="0"
                                                                   Width="250"
                                                                   Margin="4,0,0,0"
                                                                   VerticalAlignment="Center"
                                                                   Background="White"
                                                                   BorderThickness="0"
                                                                   IsEnabled="{helpers:AccessFunctionModification 0,
                                                                                                              {x:Static EnumModule:TypeModulesEnum.Appels}}"
                                                                   TabIndex="2"
                                                                   Text="{Binding Appel.Tiers,
                                                                                  Mode=TwoWay,
                                                                                  UpdateSourceTrigger=PropertyChanged}"
                                                                   Watermark="{helpers:Localize CreateAppel_WatermarkTiers}">
                                                <xctk:WatermarkTextBox.WatermarkTemplate>
                                                    <DataTemplate>
                                                        <ContentControl Content="{Binding}"
                                                                        FontFamily="Segoe UI"
                                                                        Foreground="#88A0A0A0" />
                                                    </DataTemplate>
                                                </xctk:WatermarkTextBox.WatermarkTemplate>
                                            </xctk:WatermarkTextBox>
                                        </Grid>
                                    </Border>

                                    <!--  Interlocuteur  -->
                                    <Border Grid.Row="0"
                                            Grid.Column="2"
                                            Height="30"
                                            Margin="20,5,0,10"
                                            VerticalAlignment="Bottom"
                                            Background="#FFFFFFFF"
                                            BorderBrush="#88A0A0A0"
                                            BorderThickness="1"
                                            CornerRadius="{DynamicResource CornerRadiusSize}">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>

                                            <xctk:WatermarkTextBox Grid.Column="0"
                                                                   Width="250"
                                                                   Margin="4,0,0,0"
                                                                   VerticalAlignment="Center"
                                                                   Background="White"
                                                                   BorderThickness="0"
                                                                   IsEnabled="{helpers:AccessFunctionModification 0,
                                                                                                              {x:Static EnumModule:TypeModulesEnum.Appels}}"
                                                                   TabIndex="3"
                                                                   Text="{Binding Appel.Interlocuteur,
                                                                                  Mode=TwoWay,
                                                                                  UpdateSourceTrigger=PropertyChanged}"
                                                                   Watermark="{helpers:Localize CreateAppel_WatermarkInterlocuteur}">
                                                <xctk:WatermarkTextBox.WatermarkTemplate>
                                                    <DataTemplate>
                                                        <ContentControl Content="{Binding}"
                                                                        FontFamily="Segoe UI"
                                                                        Foreground="#88A0A0A0" />
                                                    </DataTemplate>
                                                </xctk:WatermarkTextBox.WatermarkTemplate>
                                            </xctk:WatermarkTextBox>
                                        </Grid>
                                    </Border>

                                    <!--  Séparateur  -->
                                    <Line Grid.Row="1"
                                          Grid.Column="0"
                                          Grid.ColumnSpan="3"
                                          Margin="0"
                                          HorizontalAlignment="Stretch"
                                          Stretch="Fill"
                                          Stroke="#88A0A0A0"
                                          StrokeThickness="1"
                                          X1="0"
                                          X2="1" />
                                </Grid>

                                <!--  Message  -->
                                <xctk:WatermarkTextBox Grid.Row="1"
                                                       Grid.Column="0"
                                                       Grid.ColumnSpan="3"
                                                       Margin="20,10"
                                                       AcceptsReturn="True"
                                                       BorderThickness="0"
                                                       FontSize="16"
                                                       Foreground="{DynamicResource BrushForegroundTextBox}"
                                                       IsEnabled="{helpers:AccessFunctionModification 0,
                                                                                                  {x:Static EnumModule:TypeModulesEnum.Appels}}"
                                                       TabIndex="1"
                                                       Text="{Binding Appel.Message,
                                                                      Mode=TwoWay,
                                                                      UpdateSourceTrigger=PropertyChanged}"
                                                       TextWrapping="Wrap"
                                                       Watermark="{helpers:Localize CreateAppel_WatermarkMessage}">
                                    <xctk:WatermarkTextBox.WatermarkTemplate>
                                        <DataTemplate>
                                            <ContentControl Content="{Binding}"
                                                            FontFamily="Segoe UI"
                                                            Foreground="#88A0A0A0" />
                                        </DataTemplate>
                                    </xctk:WatermarkTextBox.WatermarkTemplate>
                                </xctk:WatermarkTextBox>

                                <!--  Commentaires  -->
                                <Grid Grid.Row="2"
                                      Margin="20,20,20,20"
                                      Visibility="{Binding Appel.ID,
                                                           Converter={StaticResource CountPositiveValueToVisibility}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="1" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>

                                    <TextBlock Grid.Row="0"
                                               Margin="0,0,0,5"
                                               FontSize="20"
                                               Foreground="{DynamicResource BrushForegroundTextBox}"
                                               Text="{helpers:Localize CreateAppel_CommentairesTitle}" />

                                    <!--  Séparateur  -->
                                    <Line Grid.Row="1"
                                          Grid.Column="0"
                                          Margin="0"
                                          HorizontalAlignment="Stretch"
                                          Stretch="Fill"
                                          Stroke="#88A0A0A0"
                                          StrokeThickness="1"
                                          X1="0"
                                          X2="1" />

                                    <!--  liste des commentaires  -->
                                    <ListBox Grid.Row="2"
                                             Margin="0,10,0,0"
                                             ItemTemplate="{StaticResource ListItemCommentaire}"
                                             ItemsSource="{Binding CommentsAppel}"
                                             ScrollViewer.CanContentScroll="False"
                                             Style="{StaticResource CommentsListBox}" />

                                    <!--  Ajout d'un commentaire  -->
                                    <StackPanel Grid.Row="3"
                                                MinWidth="650"
                                                Margin="0,20,0,0"
                                                HorizontalAlignment="Left"
                                                Orientation="Horizontal">
                                        <StackPanel Orientation="Vertical">
                                            <Label Content="{helpers:Localize CreateAppel_AddComment}" />
                                            <TextBox Width="650"
                                                     Height="120"
                                                     Margin="0,5,0,0"
                                                     HorizontalAlignment="Left"
                                                     AcceptsReturn="True"
                                                     Text="{Binding NewComment,
                                                                    Mode=TwoWay}" />
                                        </StackPanel>
                                        <Button Margin="10,0,0,0"
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Bottom"
                                                Command="{Binding SaveCommentCommand}"
                                                Content="{helpers:Localize CreateAppel_SaveComment}"
                                                Style="{DynamicResource MetroFlatButtonStevia}" />
                                    </StackPanel>
                                </Grid>
                            </Grid>
                        </ScrollViewer>
                    </Grid>
                </Grid>
            </Border>


            <!--  Actions  -->
            <Grid Grid.Row="0"
                  Grid.Column="1"
                  Margin="10,20,10,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <!--  Destinataires  -->
                <Border Background="White"
                        BorderBrush="{DynamicResource BrushBorderModule}"
                        BorderThickness="0"
                        CornerRadius="{DynamicResource CornerRadiusSize}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <!--  Titre  -->
                        <Border Grid.Row="0"
                                Grid.Column="0"
                                Background="{DynamicResource ColorThemeBrush}"
                                Padding="10,5,10,5">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="30" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Viewbox Width="25.179" Height="16.825">
                                    <Canvas Width="25.179" Height="16.825">
                                        <Canvas>
                                            <Canvas>
                                                <Canvas>
                                                    <Path Data="F1 M 13.993,9.426 C 13.832,9.270 13.669,9.112 13.520,8.936 C 12.477,7.683 11.735,5.762 11.735,4.187 C 11.735,2.150 13.333,0.000 15.719,0.000 C 17.583,0.000 19.587,1.743 19.587,4.321 C 19.587,5.980 18.672,8.018 17.421,9.217 C 17.340,9.312 17.247,9.373 17.166,9.447 L 17.017,9.582 L 17.063,9.770 C 17.387,10.959 18.846,11.366 21.775,12.140 L 22.378,12.316 C 23.895,12.744 24.612,13.434 24.925,14.185 L 24.937,14.185 C 25.226,14.926 25.191,15.740 25.156,16.491 C 25.145,16.597 25.145,16.722 25.134,16.825 L 6.281,16.825 C 6.271,16.648 6.259,16.480 6.235,16.262 C 6.178,15.572 6.120,14.853 6.328,14.185 C 6.582,13.423 7.243,12.744 8.771,12.316 L 9.362,12.140 C 12.049,11.419 13.484,11.012 13.959,10.062 L 14.109,9.832 L 14.098,9.529 C 14.063,9.499 14.040,9.488 13.993,9.426 Z" Fill="{DynamicResource BrushTitleModule}" />
                                                    <Path Data="F1 M 5.482,7.619 C 4.533,6.827 3.769,5.292 3.769,3.997 C 3.769,2.182 5.181,0.887 6.582,0.887 C 7.995,0.887 9.478,2.087 9.478,3.903 C 9.478,5.188 8.782,6.785 7.879,7.599 C 7.856,7.630 7.821,7.661 7.799,7.683 L 7.902,7.683 C 8.123,8.329 9.050,8.580 10.879,9.081 C 11.458,9.164 11.342,9.457 11.400,9.665 C 11.169,10.166 10.254,10.417 8.552,10.887 L 8.146,11.001 C 6.850,11.346 6.316,11.972 6.097,12.651 L 0.029,12.651 C 0.029,11.533 -0.399,9.885 2.031,9.206 C 4.221,8.611 5.286,8.360 5.482,7.619 Z" Fill="{DynamicResource BrushTitleModule}" />

                                                </Canvas>
                                            </Canvas>
                                        </Canvas>
                                    </Canvas>
                                </Viewbox>
                                <TextBlock Grid.Row="0"
                                           Grid.Column="1"
                                           Margin="5,0,0,0"
                                           VerticalAlignment="Center"
                                           FontFamily="Segoe UI Light"
                                           FontSize="14"
                                           Foreground="White"
                                           Text="{helpers:Localize CreateAppel_Destinataires,
                                                               True}" />
                            </Grid>
                        </Border>

                        <!--  Liste  -->
                        <ListBox Grid.Row="1"
                                 Grid.Column="0"
                                 Width="200"
                                 Height="250"
                                 Margin="0,10,0,0"
                                 HorizontalAlignment="Left"
                                 BorderThickness="0"
                                 IsEnabled="{helpers:AccessFunctionModification 0,
                                                                            {x:Static EnumModule:TypeModulesEnum.Appels}}"
                                 ItemTemplate="{StaticResource ListItemDestinataire}"
                                 ItemsSource="{Binding Destinataires}" />
                    </Grid>
                </Border>

                <!--  Informations  -->
                <Border Grid.Row="1"
                        Margin="0,30,0,0"
                        Background="White"
                        BorderBrush="{DynamicResource BrushBorderModule}"
                        BorderThickness="0"
                        CornerRadius="{DynamicResource CornerRadiusSize}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <!--  Titre  -->
                        <Border Grid.Row="0"
                                Grid.Column="0"
                                Background="{DynamicResource ColorThemeBrush}"
                                Padding="10,5,10,5">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="30" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Viewbox Width="25.999" Height="26.000">
                                    <Canvas Width="25.999" Height="26.000">
                                        <Canvas>
                                            <Canvas>
                                                <Path Data="F1 M 9.761,20.924 C 11.171,20.924 11.291,20.709 11.291,18.939 L 11.291,13.467 C 11.291,11.697 11.194,11.578 9.761,11.578 L 9.761,10.622 C 11.219,10.526 12.772,10.145 14.422,9.450 L 14.828,9.665 L 14.828,18.964 C 14.828,20.708 14.971,20.924 16.238,20.924 L 16.238,21.927 L 9.761,21.927 L 9.761,20.924 Z M 12.915,4.073 C 14.111,4.073 14.924,4.980 14.924,6.153 C 14.924,7.396 14.039,8.256 12.915,8.256 C 11.816,8.256 10.932,7.396 10.932,6.153 C 10.932,4.935 11.816,4.073 12.915,4.073 Z M 12.999,26.000 C 20.178,26.000 25.999,20.179 25.999,13.000 C 25.999,5.820 20.178,0.000 12.999,0.000 C 5.820,0.000 0.000,5.820 0.000,13.000 C 0.000,20.179 5.820,26.000 12.999,26.000 Z" Fill="{DynamicResource BrushTitleModule}" />
                                            </Canvas>
                                        </Canvas>
                                    </Canvas>
                                </Viewbox>
                                <TextBlock Grid.Row="0"
                                           Grid.Column="1"
                                           Margin="5,0,0,0"
                                           VerticalAlignment="Center"
                                           FontFamily="Segoe UI Light"
                                           FontSize="14"
                                           Foreground="White"
                                           Text="{helpers:Localize CreateAppel_Informations,
                                                               True}" />
                            </Grid>
                        </Border>

                        <StackPanel Grid.Row="1"
                                    Grid.Column="0"
                                    Margin="0,10,0,0"
                                    Orientation="Vertical">
                            <Label Content="{Binding Appel.DateHeure}"
                                   ContentStringFormat="{helpers:Localize CreateAppel_FormatDate}"
                                   Foreground="{DynamicResource BrushTitleModule}" />
                        </StackPanel>
                    </Grid>
                </Border>

            </Grid>

            <!--  Enregistrement, annulation  -->
            <StackPanel Grid.Row="1"
                        Grid.Column="1"
                        Margin="20,10,20,20"
                        HorizontalAlignment="Right"
                        Orientation="Horizontal">
                <Button Command="{Binding SaveCommand}"
                        Content="{helpers:Localize Generic_Valider}"
                        IsDefault="True"
                        Style="{DynamicResource MetroFlatButtonStevia}" />
                <Button Command="{Binding CancelCommand}"
                        Content="{helpers:Localize Generic_Fermer}"
                        Style="{DynamicResource MetroFlatButtonStevia}" />
            </StackPanel>
        </Grid>
    </controls:MetroContentControl>
</class:UserControlBaseModule>
